import request from "@/util/request";

export const userWithdrawText = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/user/withdrawText',
    data: data
})

export const userSendRegCode = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/user/sendRegCode',
    data: data
})

export const indexGetOpenId = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/index/getOpenId',
    data: data
})

export const userIsReg = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/user/isReg',
    data: data
})

export const userLogin = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/user/login',
    data: data
})

export const userEditBankCard = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/user/editBankCard',
    data: data
})

export const userCodelogin = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/user/codelogin',
    data: data
})

export const userBalanceDiamond = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/user/balanceDiamond',
    data: data
})

export const userUserInfo = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/user/userInfo',
    data: data
})

export const userAddBankCard = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/user/addBankCard',
    data: data
})

export const userCardList = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/user/card_list',
    data: data
})

export const userPostWithdraw = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/user/postWithdraw',
    data: data
})

export const userGetUserbyNumber = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/user/getUserbyNumber',
    data: data
})

export const userDiamondList = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/user/diamondList',
    data: data
})

export const paymentSandRecharge = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/payment/sandRecharge',
    data: data
})

export const paymentWxRecharge = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/payment/wxRecharge',
    data: data
})

export const userGetbankname = (data: Record<string, unknown>) => request({
    method: 'post',
    url: '/user/getbankname',
    data: data
})